<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05单向绑定</title>
</head>
<body ng-app="app">
<ul ng-controller="demoController">
    <li ng-bind="name"></li>
    <li ng-cloak>{{name}}{{age}}</li>
    <li ng-bind-template="{{name}}{{age}}"></li>
</ul>
</body>
<script src="libs/angular.min.js"></script>
<script>
    var app = angular.module("app",[]);
    app.controller("demoController",["$scope",function($scope){
        $scope.name="Java开发日记";
        $scope.age=1;
    }])
</script>
</html>